/* Chymera is the Sakura Conductor */
import android.net.wifi.WifiManager;
import android.text.format.Formatter;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.WifiInfo;


boolean androidMode=true;
boolean monitorMode=false;

void setup() {
  size (displayWidth, displayHeight, JAVA2D);
  commonSetup();
}
void ChymeraStage() {
  //this remains empty
}
void  positionWindow(int leave, int blank) {
  //this remains empty
}

void ipFetch()  /* reqs three library imports */
{
  String s;


  WifiManager wim= (WifiManager) getSystemService(WIFI_SERVICE);
  WifiInfo wifi = wim.getConnectionInfo();
  List<WifiConfiguration> l =  wim.getConfiguredNetworks(); 
  WifiConfiguration wc = l.get(0); 
  IP = Formatter.formatIpAddress(wim.getConnectionInfo().getIpAddress());
  println(IP);
  s=wifi.getMacAddress();
  println(s);
  String buffer[] = split(s,":");
  MAC=buffer[4]+":"+buffer[5];
  println (MAC);
}

